package com.ysl.study.opensource.spring.enable.config;

import org.springframework.context.ApplicationContext;
import org.springframework.context.event.ContextClosedEvent;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.context.event.ContextStartedEvent;
import org.springframework.context.event.ContextStoppedEvent;
import org.springframework.stereotype.Component;

/**
 * @author 许棒棒
 * @className com.ysl.study.opensource.spring.enable.config.TestEvent
 * @description TODO 类描述
 * @date 2021/05/30 21:45:28
 */
@Component
public class TestEvents   {


    public static class TestStartedEvent extends ContextStartedEvent{

        public TestStartedEvent(ApplicationContext source) {
            super(source);
        }
    }


    public static class TestStoppedEvent extends ContextStoppedEvent {

        public TestStoppedEvent(ApplicationContext source) {
            super(source);
        }
    }


    public static class TestRefreshedEvent extends ContextRefreshedEvent {
        public TestRefreshedEvent(ApplicationContext source) {
            super(source);
        }
    }


    public static class TestClosedEvent extends ContextClosedEvent {

        public TestClosedEvent(ApplicationContext source) {
            super(source);
        }
    }


}

